﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CAProductSelect.aspx.cs"
    Inherits="RN.ERP.Web.CA.CAProductSelect" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>
        <%=PageTitle %></title>
    <link href="../Styles/style.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/style_msg.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Scripts/iepngfix_tilebg.js"></script>
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <link rel="Stylesheet" type="text/css" href="../Scripts/ligerUI/skins/Aqua/css/ligerui-all.css" />
    <script type="text/javascript" src="../Scripts/ligerUI/js/ligerui.min.js"></script>
    <style>
        .IE6png
        {
            behavior: url("../Scripts/iepngfix.htc");
        }
    </style>
    <script type="text/javascript">
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }

        function returnToParent() {
            var procode = "";

            var chx = $(".danxuan_check");
            for (i = 0; i < chx.length; i++) {
                if (chx.eq(i).attr("checked")) {
                    $.ajax({
                        async: false,
                        url: "CAProductSelect.aspx/GetInfomation",
                        data: "{ 'proid':'" + chx.eq(i).val() + "','areacode':'" + $("#hidAreaCode").val() + "'}",
                        type: "post",
                        cache: false,
                        contentType: "application/json; charset=utf-8",
                        dataType: "json",
                        success: function (data) {
                            var json = eval('(' + data.d + ')');
                            procode = json.Code;
                        }
                    });
                }
            }
            var empid = document.getElementById("<%=this.hidEmpId.ClientID%>").value;
            parent.window.CloseWin(empid + "@" + procode);
            window.parent.$.ligerDialog.close(); ////关闭dialog
            parent.$(".l-dialog,.l-window-mask").hide(); ////去除父窗体遮罩层
        }

        $(function () {
            $(".danxuan_check").click(function () {
                if ($(this).attr('checked')) {
                    $(".danxuan_check").removeAttr('checked');
                    $(this).attr('checked', 'checked');
                }
            });
            if ($("#hidGroup").val() == "CA02") {
                $(".hiddenFee").css("display", "none");
            }
            if ($("#hidGroup").val() != "CA03") {
                $(".divCA03").css("display", "none");
            }
        })
    </script>
</head>
<body>
    <form runat="server">
    <asp:HiddenField ID="hidEmpId" runat="server" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
            <td width="16" class="title_lbg IE6png">
            </td>
            <td width="24" class="title_t IE6png">
            </td>
            <td width="900" class="title_libg IE6png">
                个人数字证书产品选择
            </td>
            <td width="17" class="title_rbg IE6png">
            </td>
        </tr>
        <tr id="tbCorp" runat="server">
            <td class="border_lbg IE6png">
                &nbsp;
            </td>
            <td colspan="2" style="padding-top: 16px; padding-left: 6px; padding-right: 6px;">
                <div class="blue" style="margin-bottom: 6px;">
                    <strong>个人信息</strong></div>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab" style="margin-bottom: 15px;">
                    <tr>
                        <td width="15%" bgcolor="#f2f2f2">
                            <strong>姓名</strong>
                        </td>
                        <td width="85%" style="text-align: left">
                            <asp:Label ID="lbName" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#f2f2f2">
                            <strong>身份证号</strong>
                        </td>
                        <td style="text-align: left">
                            <asp:Label ID="lbIdCard" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
                <div class="blue" style="margin-bottom: 6px;">
                    <strong>产品选择</strong>
                </div>
                <asp:Repeater ID="repProduct" runat="server">
                    <HeaderTemplate>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab">
                            <thead>
                                <tr>
                                    <td width="5%" bgcolor="#f2f2f2">
                                        <strong>选择</strong>
                                    </td>
                                    <td width="15%" bgcolor="#f2f2f2">
                                        <strong>产品名称</strong>
                                    </td>
                                    <td bgcolor="#f2f2f2">
                                        <strong>产品详细描述</strong>
                                    </td>
                                    <td width="10%" bgcolor="#f2f2f2" class="hiddenFee">
                                        <strong>费用(元)</strong>
                                    </td>
                                    <td width="10%" bgcolor="#f2f2f2">
                                        <strong>年费(元)</strong>
                                    </td>
                                    <td width="10%" bgcolor="#f2f2f2" class="divCA03">
                                        <strong>需补费用(元)</strong>
                                    </td>
                                </tr>
                            </thead>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tbody>
                            <tr>
                                <td>
                                    <input id="ckChoose" runat="server" type="checkbox" class="danxuan_check" value='<%#Eval("Id") %>' />
                                    <asp:Label ID="lbCode" runat="server" Text='<%#Eval("Code")%>' Visible="false"></asp:Label>
                                </td>
                                <td>
                                    <%#Eval("Title")%>
                                </td>
                                <td>
                                    <asp:Label ID="lbDescription" runat="server" Text='<%#Eval("Description")%>'></asp:Label>
                                </td>
                                <td class="hiddenFee">
                                    <asp:Label ID="lbFee" runat="server" Text='<%#Eval("Fee")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lbYearlyFee" runat="server" Text='<%#Eval("YearlyFee")%>'></asp:Label>
                                </td>
                                <td class="divCA03">
                                    <asp:Label ID="lbAddFee" runat="server"></asp:Label>
                                </td>
                            </tr>
                        </tbody>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top: 15px;">
                    <tr>
                        <td width="422">
                            &nbsp;
                        </td>
                        <td width="189" colspan="3">
                            <div class="icon01 IE6png">
                                <a href="javascript:void(0);" onclick="return returnToParent();return false;">确定</a></div>
                        </td>
                        <td width="423">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
            <td class="border_rbg IE6png">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="border_lconer IE6png" headers="17">
                &nbsp;
            </td>
            <td colspan="2" class="border_bottomli IE6png" height="17">
                &nbsp;
            </td>
            <td class="border_rconer IE6png" headers="17">
                &nbsp;
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hidGroup" runat="server" />
    <asp:HiddenField ID="hidAreaCode" runat="server" />
    </form>
</body>
</html>
